﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autorent.Desktop.Modules.Orders.Services;
using Autorent.Desktop.Model.Services;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Prism.Modularity;

namespace Autorent.Desktop.Modules.Reports
{
    /// <summary>
    /// The module contains work with reports. Includes create year and month reports reports by office and company.
    /// </summary>
    [Module(ModuleName = "ReportsModule")]
    public class ReportsModule : IModule
    {
        private readonly IUnityContainer _container;
        private readonly IRegionManager _regionManager;

        public ReportsModule(IUnityContainer container, IRegionManager regionManager)
        {
            _container = container;
            _regionManager = regionManager;
        }

        public void Initialize()
        {
            _container.RegisterType(typeof(IAutoOrdersRepository), typeof(AutoOrdersRepository));

            //_regionManager.AddToRegion("AllPlaceContentRegion", _container.Resolve<ReportViewModel>().View);
        }
    }
}
